/**
 * sysUserRoleDaoHibernate
 *
 * 项目名称:分秒金融
 *
 * @author lunli
 *
 * 功能描述:用户角色管理
 * 
 * 历史版本:2017-03-28 v1.0.0 lunli  创建:
 * 
 */
 package com.fmjr.sys.sysUserRole.dao;

import com.fmjr.common.base.util.Pager;
import com.fmjr.sys.sysUserRole.bean.SysUserRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysUserRoleDao{
	
	public Integer createSysUserRole(SysUserRole sysUserRole);
	public Integer deleteSysUserRoleById(Long id);
	public Integer updateSysUserRole(SysUserRole sysUserRole);
	public List<SysUserRole> selectSysUserRoleAll();

	public SysUserRole selectSysUserRoleByT(SysUserRole sysUserRole);
	public SysUserRole selectSysUserRoleById(Long id);
	
	public List<SysUserRole> selectSysUserRoleList(Pager<SysUserRole> pager);	
	
	public Integer selectSysUserRoleCount(Pager<SysUserRole> pager);
	
	public void insertSysUserRoleBatch(List<SysUserRole> list);
	
	/***
	 * 根据用户  ID 获取所有角色
	 * @param userId
	 */
	public List<SysUserRole> searchRoleByUserId(Long userId);
	
}
